package com.lebang.mapper;

import com.lebang.domain.CencesSdkErrorLog;
import com.lebang.example.CencesSdkErrorLogExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * CencesSdkErrorLogMapper继承基类
 */
@Mapper
public interface CencesSdkErrorLogMapper extends MyBatisBaseDao<CencesSdkErrorLog, Integer, CencesSdkErrorLogExample> {
    List<CencesSdkErrorLog> selectTime(@Param("page") Integer page,@Param("limit") Integer limit,@Param("star") Integer star,@Param("end") Integer end);

    Integer countTime(@Param("page") Integer page,@Param("limit") Integer limit,@Param("star") Integer star,@Param("end") Integer end);

    List<CencesSdkErrorLog> getLookList(@Param("page") Integer page,@Param("limit") Integer limit,@Param("time") Integer time);

    Integer countLookList(@Param("time") Integer time);

    List<CencesSdkErrorLog> getErrorLookList(@Param("page") Integer page,@Param("limit") Integer limit,@Param("time") Integer time,
                                             @Param("sdkKey") String sdkKey,@Param("errorCode") String errorCode,@Param("errorMsg") String errorMsg);

    Integer countErrorLookList(@Param("time") Integer time, @Param("sdkKey") String sdkKey,@Param("errorCode") String errorCode,@Param("errorMsg") String errorMsg);

    int deleteByTime(@Param("time")Integer time);
}